//
//  TGLibECGDelegate.h
//  TGAccessory
//
//  Created by FEI DENG on 6/30/14.
//  Copyright (c) 2014 NeuroSky. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol TGLibECGDelegate <NSObject>

enum {
    ECG_NO_SUCH_FILE = 0,
    ECG_NOT_ENOUGH_DATA = 1,
    ECG_VALID_HEART_AGE = 2,
    ECG_HAERT_AGE_HAS_INITIALIZED = 3,
    ECG_STRESS_HAS_INITIALIZED = 4,
    ECG_INVALID_INPUT_AGE = 5,
    ECG_INVALID_INPUT_NAME = 6,
    ECG_INVALID_INPUT_HEIGHT = 7,
    ECG_INVALID_INPUT_WEIGHT = 8,
    ECG_INVALID_INPUT_HEARTAGE_OUTPUTPOINT = 9,
    ECG_INVALID_INPUT_HEARTAGE_RECORDNUMBER = 10,
    ECG_INVALID_INPUT_STRESS_OUTPUTPOINT = 11,
    ECG_INVALID_INPUT_HRV_OUTPUTPOINT = 12,
    ECG_INVALID_INPUT_MOOD_OUTPUTPOINT = 13,
    ECG_INVALID_INPUT_SIGNAL_QUALITY_THRESHOLD = 14,
};
typedef NSUInteger ECGException;
- (void)exceptionECGMessage:(ECGException)excepType;

- (void)dataReceived:(NSDictionary *)data;

@end
